﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;

namespace StudentService
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IStudentSrv" in both code and config file together.
    [ServiceContract]
    public interface IStudentSrv
    {
        [OperationContract]
        Teacher getTeacherByName(string teacher_name);

        [OperationContract]
        Teacher saveTeacher(Teacher teacherObj);

        [OperationContract]
        Avatar getAvatarByID(int _ID);

        [OperationContract]
        bool updateAvatarByID(int student_id, int avatar_id);

        [OperationContract]
        bool addAvatar(Avatar avatarObj);

        [OperationContract]
        List<Avatar> getAllAvatars();

        [OperationContract]
        byte[] getStudentAvatar(int student_id);

        [OperationContract]
        Student getStudentByID(int userID);

        [OperationContract]
        string addCurrentStudent(int student_id, byte[] UDID);

        [OperationContract]
        string removeCurrentStudent(int student_id);
    }
}
